EDIT: Solution found: Tools > Compiler Options > Settings > Linker > Do not use standard system startup files or libraries. End edit.
hi,
Just wondering if there's some thing (i.e setting?) that could be changed to fix this issue before I decide to completely reinstall DevC++;
For whatever reason, I can now no longer compile even the most basic code without getting various [Linker error] undefined reference etc errors when trying to compile a single source file, though I previously could without issue. However, creating a project and compiling the exact same code (same location etc), everything compiles and runs fine.
Code:
#include <iostream>
using namespace std;
int main()
{}
Errors;
Code:
[Warning] cannot find entry symbol _mainCRTStartup; defaulting to 00401000
\Temp\ccGAbaaa.o(.text+0x17) In function `ZSt17__verify_groupingPKcjRKSs':
[Linker error] undefined reference to `std::string::size() const'
\Temp\ccGAbaaa.o(.text+0x135) In function `main':
And various other, similar, errors.
Please note: I'm only a beginner , but as I said, if I use this exact same code with a project it works fine. It's as if I've done something to DevC++ to cause this, but I can't for the life of me see how/where I would/could of done this.
I'm using DevC++ v4.9.9.2.
Please let me know if any other info may help.